const mongoose = require('mongoose')
const Schema = mongoose.Schema

const PasswordSchema = new Schema({//映射密码表
    userId:{
        type:String,
        require:true
    },
    hash:{
        type:String,
        require:true
    }
},{collection:'password',versionKey:false})

module.exports = mongoose.model('password',PasswordSchema)